#include "Client.h"

using namespace std;


// The gameDisplay object is global, because the static signal handler object
// needs to access the dynamic object.

display gameDisplay;

//Puts the cards inplace
void Client::drawTable(){
/*

//These are the locations of the cards on table
//These values could be window size dependent later
//These values assume a window size of 60 x by 35 y
  //Player 1
    int p1_Deck_x = 24;
    int p1_Deck_y = 28;
    int p1_Hand_x = 32;
    int p1_Hand_y = 28;
  //Player 2
    int p2_Deck_x = 3;
    int p2_Deck_y = 18;
    int p2_Hand_x = 3;
    int p2_Hand_y = 13;
  //Player 3
    int p3_Deck_x = 24;
    int p3_Deck_y = 2;
    int p3_Hand_x = 32;
    int p3_Hand_y = 2;
  //Player 4 
    int p4_Deck_x = 50;
    int p4_Deck_y = 18;
    int p4_Hand_x = 50;
    int p4_Hand_y = 13;
*/

/*
	gameDisplay.displayCard(p1_Deck_x,p1_Deck_y,1,1,1);
	gameDisplay.displayCard(p1_Hand_x,p1_Hand_y,1,1,1);
	gameDisplay.displayCard(p2_Deck_x,p2_Deck_y,2,2,1);
	gameDisplay.displayCard(p2_Hand_x,p2_Hand_y,2,2,1);
	gameDisplay.displayCard(p3_Deck_x,p3_Deck_y,3,3,1);
	gameDisplay.displayCard(p3_Hand_x,p3_Hand_y,3,3,1);
	gameDisplay.displayCard(p4_Deck_x,p4_Deck_y,4,4,1);
	gameDisplay.displayCard(p4_Hand_x,p4_Hand_y,4,4,1);
*/
}

void Client::updateClient(){
// calls the game display to capture some input
key = gameDisplay.captureInput();
drawTable();
}


